package com.sasis.model;
// Generated 2007-4-24 16:31:50 by Hibernate Tools 3.1.0.beta4

import java.sql.Date;


/**
 * @struts.form include-all="true" extends="BaseForm"
 * @hibernate.class
 *         table="NOTICE_INFO"
 *     
 */

public class NoticeInfo extends com.sasis.model.BaseObject implements java.io.Serializable {


    // Fields    

    /**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Integer id;
    private String planId;
    private String startDate;
    private String guestName;
    private String guestTel;
    private String noticeContent;
    private String noticeStatus;
    private Date noticeTime;
    private String memo;


    // Constructors

    /** default constructor */
    public NoticeInfo() {
    }

    
    /** full constructor */
    public NoticeInfo(String planId, String startDate, String guestName, String guestTel, String noticeContent, String noticeStatus, Date noticeTime, String memo) {
        this.planId = planId;
        this.startDate = startDate;
        this.guestName = guestName;
        this.guestTel = guestTel;
        this.noticeContent = noticeContent;
        this.noticeStatus = noticeStatus;
        this.noticeTime = noticeTime;
        this.memo = memo;
    }
    

   
    // Property accessors
    /**       
     *      *            @hibernate.id
     *             generator-class="native"
     *             type="java.lang.Integer"
     *             column="ID"
     *         
     */

    public Integer getId() {
        return this.id;
    }
    
    public void setId(Integer id) {
        this.id = id;
    }
    /**       
     *      *            @hibernate.property
     *             column="PLAN_ID"
     *             length="8"
     *         
     */

    public String getPlanId() {
        return this.planId;
    }
    
    public void setPlanId(String planId) {
        this.planId = planId;
    }
    /**       
     *      *            @hibernate.property
     *             column="START_DATE"
     *             length="20"
     *         
     */

    public String getStartDate() {
        return this.startDate;
    }
    
    public void setStartDate(String startDate) {
        this.startDate = startDate;
    }
    /**       
     *      *            @hibernate.property
     *             column="GUEST_NAME"
     *             length="100"
     *         
     */

    public String getGuestName() {
        return this.guestName;
    }
    
    public void setGuestName(String guestName) {
        this.guestName = guestName;
    }
    /**       
     *      *            @hibernate.property
     *             column="GUEST_TEL"
     *             length="30"
     *         
     */

    public String getGuestTel() {
        return this.guestTel;
    }
    
    public void setGuestTel(String guestTel) {
        this.guestTel = guestTel;
    }
    /**       
     *      *            @hibernate.property
     *             column="NOTICE_CONTENT"
     *             length="150"
     *         
     */

    public String getNoticeContent() {
        return this.noticeContent;
    }
    
    public void setNoticeContent(String noticeContent) {
        this.noticeContent = noticeContent;
    }
    /**       
     *      *            @hibernate.property
     *             column="NOTICE_STATUS"
     *             length="8"
     *         
     */

    public String getNoticeStatus() {
        return this.noticeStatus;
    }
    
    public void setNoticeStatus(String noticeStatus) {
        this.noticeStatus = noticeStatus;
    }
    /**       
     *      *            @hibernate.property
     *             column="NOTICE_TIME"
     *             length="7"
     *         
     */

    public Date getNoticeTime() {
        return this.noticeTime;
    }
    
    public void setNoticeTime(Date noticeTime) {
        this.noticeTime = noticeTime;
    }
    /**       
     *      *            @hibernate.property
     *             column="MEMO"
     *             length="50"
     *         
     */

    public String getMemo() {
        return this.memo;
    }
    
    public void setMemo(String memo) {
        this.memo = memo;
    }
   

    /**
     * toString
     * @return String
     */
     public String toString() {
	  StringBuffer buffer = new StringBuffer();

      buffer.append(getClass().getName()).append("@").append(Integer.toHexString(hashCode())).append(" [");
      buffer.append("planId").append("='").append(getPlanId()).append("' ");			
      buffer.append("startDate").append("='").append(getStartDate()).append("' ");			
      buffer.append("guestName").append("='").append(getGuestName()).append("' ");			
      buffer.append("guestTel").append("='").append(getGuestTel()).append("' ");			
      buffer.append("noticeContent").append("='").append(getNoticeContent()).append("' ");			
      buffer.append("noticeStatus").append("='").append(getNoticeStatus()).append("' ");			
      buffer.append("noticeTime").append("='").append(getNoticeTime()).append("' ");			
      buffer.append("memo").append("='").append(getMemo()).append("' ");			
      buffer.append("]");
      
      return buffer.toString();
     }


   public boolean equals(Object other) {
         if ( (this == other ) ) return true;
		 if ( (other == null ) ) return false;
		 if ( !(other instanceof NoticeInfo) ) return false;
		 NoticeInfo castOther = ( NoticeInfo ) other; 
         
		 return ( (this.getId()==castOther.getId()) || ( this.getId()!=null && castOther.getId()!=null && this.getId().equals(castOther.getId()) ) )
 && ( (this.getPlanId()==castOther.getPlanId()) || ( this.getPlanId()!=null && castOther.getPlanId()!=null && this.getPlanId().equals(castOther.getPlanId()) ) )
 && ( (this.getStartDate()==castOther.getStartDate()) || ( this.getStartDate()!=null && castOther.getStartDate()!=null && this.getStartDate().equals(castOther.getStartDate()) ) )
 && ( (this.getGuestName()==castOther.getGuestName()) || ( this.getGuestName()!=null && castOther.getGuestName()!=null && this.getGuestName().equals(castOther.getGuestName()) ) )
 && ( (this.getGuestTel()==castOther.getGuestTel()) || ( this.getGuestTel()!=null && castOther.getGuestTel()!=null && this.getGuestTel().equals(castOther.getGuestTel()) ) )
 && ( (this.getNoticeContent()==castOther.getNoticeContent()) || ( this.getNoticeContent()!=null && castOther.getNoticeContent()!=null && this.getNoticeContent().equals(castOther.getNoticeContent()) ) )
 && ( (this.getNoticeStatus()==castOther.getNoticeStatus()) || ( this.getNoticeStatus()!=null && castOther.getNoticeStatus()!=null && this.getNoticeStatus().equals(castOther.getNoticeStatus()) ) )
 && ( (this.getNoticeTime()==castOther.getNoticeTime()) || ( this.getNoticeTime()!=null && castOther.getNoticeTime()!=null && this.getNoticeTime().equals(castOther.getNoticeTime()) ) )
 && ( (this.getMemo()==castOther.getMemo()) || ( this.getMemo()!=null && castOther.getMemo()!=null && this.getMemo().equals(castOther.getMemo()) ) );
   }
   
   public int hashCode() {
         int result = 17;
         
         result = 37 * result + ( getId() == null ? 0 : this.getId().hashCode() );
         result = 37 * result + ( getPlanId() == null ? 0 : this.getPlanId().hashCode() );
         result = 37 * result + ( getStartDate() == null ? 0 : this.getStartDate().hashCode() );
         result = 37 * result + ( getGuestName() == null ? 0 : this.getGuestName().hashCode() );
         result = 37 * result + ( getGuestTel() == null ? 0 : this.getGuestTel().hashCode() );
         result = 37 * result + ( getNoticeContent() == null ? 0 : this.getNoticeContent().hashCode() );
         result = 37 * result + ( getNoticeStatus() == null ? 0 : this.getNoticeStatus().hashCode() );
         result = 37 * result + ( getNoticeTime() == null ? 0 : this.getNoticeTime().hashCode() );
         result = 37 * result + ( getMemo() == null ? 0 : this.getMemo().hashCode() );
         return result;
   }   





}
